<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><%@include file="/include/public.jspf"%>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta name="format-detection" content="telephone=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1,user-scalable=no" />
<link rel="stylesheet" type="text/css" href="${path }/css/default/m-base.css" />
<link rel="stylesheet" type="text/css" href="${path }/css/default/m-common.css" />
<link rel="stylesheet" type="text/css" href="${path }/css/default/p-all.css" />
<script type="text/javascript" src="${path }/js/jquery1.10.2.min.js"></script>
<script type="text/javascript" src="${path }/js/lib/zepto.js"></script>
<script type="text/javascript" src="${path }/js/common/base.js"></script>
<script type="text/javascript" src="${path }/js/lib/lib.js"></script>

<title>魔环金融</title>
</head>
<body>
<div class="ui_title">
        <a class="ui_back" href="javascript:void(0)" onclick="window.history.back();"><i class="ui_icon_back"></i>返回</a>
        资金记录</div>
    <section class="m-main p_account_money">
        <div class="content ui_border_b"></div>
        <div class="ui_loadmore_text"><a href="avascript:void(0);">点击加载更多</a></div>
    </section>
    <script>
    var moneyLog = new P2PWAP.ui.P2PLoadMore($(".p_account_money .content")[0], $('.ui_loadmore_text')[0], '/account/ajax_money',1);
    moneyLog.timeYM = '';
    moneyLog.createItem = function(item) {
        var timeYM = P2PWAP.util.dataFormat(item.log_time, 'y年m月');
        var titleDiv = '';
        var div = document.createElement("div");
        var html = '';
        html += '<dt>';
        html += '    <p class="f15">' + item.log_info + '</p>';
        html += '    <p class="gray_v1">' + item.note + '</p>';
        html += '</dt>';
        html += '<dd>';
        html += '    <div class="ui_middle">';
        if(item.money < 0) {
            html += '    <p class="green_v1 f15">' + (item.money * 1).toFixed(2) + '元</p>';
        } else {
            html += '    <p class="red_v1 f15">+' + (item.money * 1).toFixed(2) + '元</p>';
        }
        html += '        <p class="gray_v1">' + P2PWAP.util.dataFormat(item.log_time, 'm-d h:i') + '</p>';
        html += '    </div>';
        html += '</dd>';
        div.innerHTML = html;
        div.className = 'ui_con_jl';
        if (timeYM != moneyLog.timeYM) {
            titleDiv = document.createElement("div");
            titleDiv.innerHTML = timeYM;
            titleDiv.className = 'ui_plan_title';
            moneyLog.timeYM = timeYM;
            return [titleDiv, div];
        } else {
            return div;
        }
    }
    var _moneyLogFirstpage = [];
    moneyLog.preloadPage(_moneyLogFirstpage,1);
    </script>
</body>
</html>